<%@ page language="java" contentType="text/html; charset=BIG5"
	pageEncoding="BIG5"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=BIG5">
<title>Product List</title>
</head>
<body>
	<table>
			<table>
				<thead>
					<tr>
						<th colspan="2">action</th>
						<th>productName</th>
						<th>salesPrice</th>
						<th>buyPrice</th>
						<th>description</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach var="p" items="${product}">
						<tr>
							<td><form name="form<c:out value="${p.productCode}" />" method="post" action="../Product/Delete"><input type="hidden" name="code" value="<c:out value="${p.productCode}" />"><input type="button" value="delete" onclick="javascript:form<c:out value="${p.productCode}" />.submit()" /></form></td>
							<td></td>
							<td><c:out value="${p.productName}" /></td>
							<td><c:out value="${p.salesPrice}" /></td>
							<td><c:out value="${p.buyPrice}" /></td>
							<td><c:out value="${p.description}" /></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
	</table>
	<a href="../Product/List">Product List</a>
	<a href="../">index</a>
</body>
</html>